
#ifndef _MAPGIS_TRANS_H_
#define _MAPGIS_TRANS_H_


bool CalculateTheatPhiPsi(const dmDPoint& vect,double&theta,double& phi,bool bRadious);
bool CalculateTheatPhiPsi(const dmDPoint & vect,double *the,double *ph,double *l,bool bRadious);
double ComputerLenghFromPoints(const dmDPoint& pt1,const dmDPoint& pt2);
double ComputerLengthFromPoints(int count,const dmDPoint* lparray);
void Polar(const dmDPoint cenpoint,double angle,double len,dmDPoint& outpoint);
long GetRegDot(short ai,long no, D_DOT** ppddDot,long** ppLoopDotCount,long* pnLoopCount);
void FreeRegDot();

#endif